winrm create winrm/config/Listener?Address=*+Transport=HTTPS @{Hostname="serverfqdn";CertificateThumbprint="EmpreinteNumérique"}

winrm delete winrm/config/Listener?Address=*+Transport=http

netsh advfirewall firewall add rule name="Windows Remote Management (HTTPS-In)" protocol=TCP dir=in localport=5986 action=allow

Enter-PSSession -ComputerName 'AD1.formation.local' -UseSSL
